<template>
    <div>
        <h2>childone - 1 - 子组件 --- {{num}}</h2>
        <h2>word --- {{word}}</h2>
        <p>
            <input type="text" v-model="word">
        </p>
        <h2>c===={{c}}</h2>
        <div v-if="show">
            <h2 v-for="(l,i) in list " :key="i"> {{l}}</h2>
        </div>

    </div>
</template>

<script>
import word from "@/utils"
export default {
    // props:['num'],
    props:{
        num:Number,
        show:Boolean,
        c:Number,
    },
    data(){
        return {
            list:["Vue","Vue3.0","React","Node","More"],
            msg:"ARe you OK?",
            word
        }
    },
    mounted(){
        this.$bus.$on("changeByBus",w=>{
            this.word = w;
        })
    }
}
</script>